package com.sanyu.controller.admin;

import com.sanyu.pojo.dto.WarningPageQueryDTO;
import com.sanyu.pojo.vo.WarningVO;
import com.sanyu.result.PageResult;
import com.sanyu.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/warn")
@Api("后台管理页面/告警管理相关接口")
public class WarnController {
    @GetMapping("/page")
    @ApiOperation("分页查询告警信息")
    public PageResult page(WarningPageQueryDTO warningPageQueryDTO){
        return new PageResult();
    }

    @GetMapping("/{id}")
    @ApiOperation("列出指定ID告警的详细信息")
    public Result<WarningVO> detail(@PathVariable Long id){
        return Result.success(new WarningVO());
    }
}
